package edu.hrbeu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.hrbeu.entity.Discount;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author wzq
 * @create 2022-01-06-12:07
 */
@Repository
public interface DiscountMapper extends BaseMapper<Discount> {
    @Update("update t_discount set state=#(param2) where id = (param1)")
    public int updateStateByid(Integer id, Integer state);
}
